const FileScanner = require('../src/services/fileScanner');

async function main() {
    const scanner = new FileScanner('D:/Programming/Projects/NodeJS/web-poster-wall/test/testDir');
    try {
        const results = await scanner.scan();
        console.log('扫描结果:', results);
    } catch (error) {
        console.error('扫描过程中出错:', error);
    }
}

main();

/*
扫描结果: [
    {
        folderName: 'RJ01227657双语',
        path: 'D:\\Programming\\Projects\\NodeJS\\web-poster-wall\\test\\testDir\\RJ01227657双语',
        code: 'RJ01227657',
        isSub: false,
        isVR: false,
        lang: '双语'
    },
    {
        folderName: '【RJ260221】abcdefg【双语】【字幕】',
        path: 'D:\\Programming\\Projects\\NodeJS\\web-poster-wall\\test\\testDir\\【RJ260221】abcdefg【双语】【字幕】',
        code: 'RJ260221',
        isSub: true,
        isVR: false,
        lang: '双语'
    },
    {
        folderName: '【RJ397336】【字幕】',
        path: 'D:\\Programming\\Projects\\NodeJS\\web-poster-wall\\test\\testDir\\【RJ397336】【字幕】',
        code: 'RJ397336',
        isSub: true,
        isVR: false,
        lang: null
    }
]
*/